using System;
using System.Collections;
using System.Collections.Generic;

using DATA.Base;

namespace DATA.BusinessObjects
{
    public partial class Loaikhach : BusinessBase<string>
    {
        #region Declarations

		private string _tenLoaiKhach = null;
		private int? _heSo = null;
		
		
		private IList<Khachhang> _khachhangs = new List<Khachhang>();
		
		#endregion

        #region Constructors

        public Loaikhach() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_tenLoaiKhach);
			sb.Append(_heSo);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string TenLoaiKhach
        {
            get { return _tenLoaiKhach; }
			set
			{
				OnTenLoaiKhachChanging();
				_tenLoaiKhach = value;
				OnTenLoaiKhachChanged();
			}
        }
		partial void OnTenLoaiKhachChanging();
		partial void OnTenLoaiKhachChanged();
		
		public virtual int? HeSo
        {
            get { return _heSo; }
			set
			{
				OnHeSoChanging();
				_heSo = value;
				OnHeSoChanged();
			}
        }
		partial void OnHeSoChanging();
		partial void OnHeSoChanged();
		
		public virtual IList<Khachhang> Khachhangs
        {
            get { return _khachhangs; }
            set
			{
				OnKhachhangsChanging();
				_khachhangs = value;
				OnKhachhangsChanged();
			}
        }
		partial void OnKhachhangsChanging();
		partial void OnKhachhangsChanged();
		
        #endregion
    }
}
